All Questions
16 questions
5votes
1answer
236views
Traverse/transform (xml) tree
I am trying to write a utility for transforming xml trees using single pass and specifying node handlers. I used pugixml prior to this, and the library provides a ...
4votes
1answer
564views
HackerRank Attribute Parser
I wrote a program for solving the Attribute Parser challenge on HackerRank. The challenge is to read some specified number of lines of HTML-like markup (each line no more than 200 characters; for any ...
1vote
1answer
622views
In progress XML parser (xml writer class)
I was wondering if someone wouldn't mind reviewing this XML writer code that I've been working on. It should be fully functional, and includes an example of how to use it. ConsoleApplication1.cpp <...
3votes
2answers
828views
Using QXmlStreamReader to read configuration file of key-value pairs
Background The following XML snippet contains configuration parameters for our application in key-value pair manner. (Despite using INI files for such purpose may be better, I have to use XML files.) ...
0votes
3answers
109views
Opening and validating an XML file
I have a section of code that repeats many lines and I am looking to refactor this code possibly so that a function can be used instead of the same lines of code each time. Below is the section of ...
2votes
1answer
125views
Custom TCP / XML messaging in C++
I am interested in hearing views on this new Module I am adding to an existing system to handle sale items from a 3rd party Software system. This system sends (XML) messages to our system, we need to ...
4votes
1answer
2kviews
XML parsing program in C++
This is my code which works and compiles but I feel it may be non-optimal, especially the tag mapping and use of the if command. It reads two .xml files and finds ...
3votes
1answer
1kviews
Find change in XML and print node
This code has been developed with help on Stack Overflow. It is designed to compare two XML files and print the node for any differences (i.e if a entry appears in A.xml and not B.xml and vice versa). ...
6votes
2answers
401views
Checking the difference between old and new XML
I have two xml files, about 500mb each, an old and a new. I want to find out what items have been added or removed in the new.xml compared with the old.xml. I had some help on this code and I'm a bit ...
7votes
3answers
7kviews
Basic XML Parser
A while back, I posted an XML Writer. Today I have finished what I hope to be a solid XML parser that, while not professional, will get the job done. To start, I do use a stack on one part of the ...
4votes
2answers
2kviews
XML Writer in C++ - Updated
I recently posted about a basic XML writer in C++ and got a lot of great feedback. Well, I'm back with an updated version of the XML writer that is a bit less basic, but hope it's better than the ...
10votes
5answers
21kviews
Basic XML Writer in C++
This is an XML Writer in C++. It doesn't do much but the basics, and I've tested it, so it should hold up well enough. I hope in the near future, I can bring you an XML Reader. I kinda built the ...
6votes
1answer
330views
File validator configured using XML
I am making an application to check for any files that does not follow a specific pattern defined in a XML file. The application works well, but the source code is not the greatest, and memory ...
7votes
3answers
671views
Rigidness and verbose nature of XML parsing
I've been developing a simple console application in C++ using the TinyXML2 library, and I honestly can't help but feel what I'm doing is not very robust. Maybe that's just the nature of parsing XML (...
2votes
1answer
2kviews
Create Directed Acyclic Graph (DAG) from XML-Tree
I've written a program that creates the (minimal unique) directed acyclic graph from the tree structure of an XML-document. The program prints a Bplex-Grammar to cout. I'm interested in all kinds of ...